// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

.codicon-error    { color: var(--vscode-problemsErrorIcon-foreground); }
.codicon-warning  { color: var(--vscode-problemsWarningIcon-foreground); }
.codicon-info     { color: var(--vscode-problemsInfoIcon-foreground); }
.codicon-issues   { color: var(--vscode-problemsInfoIcon-foreground); }
.codicon-question { color: var(--vscode-problemsInfoIcon-foreground); }

.svBadge {
    padding: 3px 5px;
    border-radius: 11px;
    font-size: 11px;
    min-width: 18px;
    min-height: 18px;
    line-height: 11px;
    font-weight: 400;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
    background-color: var(--vscode-badge-background);
    color: var(--vscode-badge-foreground);
}

.svCheckrow {
    cursor: pointer;
    padding: 3px 0;
    display: flex;
    align-items: center;

    .svCheckbox {
        box-sizing: border-box;
        height: 18px;
        width: 18px;
        border: 1px solid transparent;
        border-radius: 3px;
        margin-left: 0;
        margin-right: 9px; // Matches VS Code settings page.
        background-color: var(--vscode-input-background);

        .codicon {
            width: unset !important;
            line-height: unset !important;
            opacity: 0;
        }

        &.svChecked { 
            .codicon { opacity: 1; }
        }
    }

    &.svWithDescription {
        align-items: flex-start;

        .svWithDescription {
            div + div {
                margin-top: 4px;
            }
            div:nth-child(2) {
                color: rgb(139, 139, 139); // svSecondary
            }
        }
    }
}

.svList {
    &.svListZero {
        display: grid;
        align-items: center;
        justify-items: center;
    }
}

.svPopover {
    position: absolute;
    z-index: 1;
    background: var(--vscode-menu-background);
    box-shadow: var(--vscode-widget-shadow) 0px 0px 8px;
    padding: 10px 28px 14px 16px;
    user-select: none;
    display: flex;
    flex-direction: column;
    color: var(--vscode-foreground); // VS Code has alpha=0.9, but couldn't find the function.

    & > div.svPopoverTitle {
        &:not(:first-child) {
            margin-top: 12px;
        }
        color: var(--vscode-settings-headerForeground);
        font-weight: 600;
        margin-bottom: 2px;
    }

    & > .svPopoverDivider {
        height: 1px;
        margin: 12px -28px 0 -16px;
        background: var(--vscode-editorGroup-border);
    }
}

.svTabs {
    display: flex;
    padding: 0 12px;
    user-select: none;

    & > .svListItem {
        cursor: pointer;
        padding: 4px 10px 3px;

        & > div {
            display: flex;
            align-items: center;
            border-bottom: 1px solid transparent;
            text-transform: uppercase;
            font-size: 11px;
            line-height: 27px;
            color: var(--vscode-panelTitle-activeForeground);
            color: rgb(139, 139, 139); // svSecondary

            .svBadge {
                margin-left: 6px;
            }
        }

        &.svItemSelected > div {
            color: var(--vscode-panelTitle-activeForeground);
            border-bottom-color: var(--vscode-panelTitle-activeForeground);
        }
    }
}
